package com.inno.thread.hello;

/**
 * lambda 开启一个任务线程
 *
 * @author: May
 * @date 2020/5/27
 */
public class RunnableWittJDK18 {
    public static void main(String[] args) {
        Runnable r = () -> System.out.println("jdk18 lambda 表达式开启任务");
        Thread t = new Thread(r,"Lambda线程");
        t.start();
    }


}
